package com.redis.redisdemo;


import lombok.extern.slf4j.Slf4j;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.context.annotation.Configuration;

@SpringBootApplication
@Slf4j
public class RedisDemoApplication {

    public static void main(String[] args) {
        try {
            SpringApplication.run(RedisDemoApplication.class, args);
        } catch (Exception e) {
            e.printStackTrace();
            // （推荐）如果项目中存在日志框架，可以通过日志框架打印
            log.debug("the exception is {}", e.getMessage(), e);
        }
    }

}
